<div class="fui-page fui-page-current page-goods-list" ng-if="pagedata.op=='tukus'">
	<style>
	.content-group {background:#fff;border-radius: 0.5rem;margin-bottom:0.39rem}
	</style>
	<div class="fui-tab-scroll" style="background:#fff;padding-bottom:0.5rem;height:2.5rem">
		<div ng-class="{'item':1,'on':pagedata.params.cateid==0}" style="height:2rem;line-height:1.5rem"><a href="javascript:;" ng-click="pagedata.params.cateid=0;tool.get_list('jy_quanhuo/tukus/getlist/',true)">全部</a></div>
		<div ng-repeat="tab in pagedata.p_group" style="height:2rem;line-height:1.5rem" ng-class="{'item':1,'on':pagedata.params.cateid==tab.id}"><a href="javascript:;" ng-click="pagedata.params.cateid=tab.id;tool.get_list('jy_quanhuo/tukus/getlist/cateid='+tab.id,true)">{{tab.catename}}</a></div>
	</div>
	<div class="fui-content" style="top:0">
		<div class="c" style="margin-top:0.5rem">
			<a href="javascript:;" ng-click="pagedata.goup_file();" class='btn btn-sm btn-danger-o external'style="border-radius: 100px;width:  9rem;font-size: .75rem">直接上传封面</a>
		</div>
		<div class="fui-picturew" style="margin-top:0.3rem">
                <div ng-repeat="item in pagedata.list" class="item" style="width: 50%;height:5rem" href="javascript:;" ng-click="pagedata.goselect(item.image);">
                    <div class="image" style="padding: 5px;height:5rem">
                        <img style="height:100%;width:100%;" ng-src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}">
                    </div>
                </div>
		</div>
		<div ng-show="pagedata.loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
		<div ng-include="sys_html('common/_copyright',true)"></div>
	</div>
	<div ng-include="sys_html('common/_gotop',true)"></div>
	<script>
	//手机软键盘--搜索
	$("body").keydown(function() {
		if (event.keyCode == "13") {
			$('#searchsub').click();
		}
	});
	scope.tool.get_list('jy_quanhuo/tukus/getlist/',true);
	scope.pagedata.scroll_bottom=function(){
		scope.tool.get_list('jy_quanhuo/tukus/getlist/');
	}
	scope.pagedata.params.cateid=0;
	scope.get('jy_quanhuo/tukus/',function(res){
		scope.pagedata.p_group=res.p_group;
		scope.$evalAsync();
	});
	scope.pagedata.goselect=function(image){
		scope.pagedata.post.logo=image;
		scope.pagedata.op='main';
		scope.$evalAsync();
	}
	scope.pagedata.goup_file=function(){
		scope.tool.up_file('image',function(res){
			scope.pagedata.post.logo=res;
			scope.pagedata.op='main';
			scope.$evalAsync();
		});
	}
	</script>
</div>
